﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.DynamicData;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


/// <summary>
/// Summary description for Product
/// </summary>


namespace ITPCTaxFormModel
{
    [MetadataType(typeof(ProductCategoryMetadata))]
    [DisplayColumnAttribute("ProductCategoryCode", "ProductCategoryCode", false)]
    public partial class ProductCategory
    {
        public class ProductCategoryMetadata
        {
            [Timestamp]
            public object ModifiedDate{ get; set; }        
            [Required]
            [RegularExpression("^[^ ]{4,12}[^ ]*$", ErrorMessage = "Mã HS không đúng định dạng!")]
            public object ProductCategoryCode;
            [StringLength(1000)]
            [DisplayFormat(HtmlEncode = false)]
            public object Description;
        }

    }

}